<%@page contentType="text/html;charset=UTF-8" language="java" %>
<div style="text-align: center">
    <ul id="pagination" class="pagination"></ul>
</div>
<script type="text/javascript">
    $(function () {
        $('#pagination').twbsPagination({
            totalPages:${result.totalPage} || 1,
            startPage:${result.currentPage} || 1,
            visiblePages :3,
            first:"首页",
            prev:"上一页",
            next:"下一页",
            last:"尾页",
            onPageClick:function(event,page) {
            $("#currentPage").val(page);
            $("#searchForm").submit();
        }
    })
    })

</script>
<%--<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div style="text-align: center;">
    <ul id="pagination" class="pagination"></ul>
</div>
<script type="text/javascript">
    $(function(){
        $('#pagination').twbsPagination({
            totalPages: ${result.totalPage} || 1,
            startPage: ${result.currentPage} || 1,
            visiblePages:3,
            first:"首页",
            prev:"上页",
            next:"下页",
            last:"尾页",
            //event 表示事件对象
            //page 表示页码: 当前页
            onPageClick:function(event, page){
                //讲当前页设置page值
                $("#currentPage").val(page);
                //表单提交
                $("#searchForm").submit();
            }
        });
    })
</script>--%>




